<?php

namespace App\Api\Auth\Models;

use Illuminate\Database\Eloquent\Model;

class ChatMessages extends Model
{
    protected  $table = 'chat_messages';
    protected $fillable = [
        'message',
        'user_id',
        'type'
    ];

    static $type = [
        '1' => 'text',
        '2' => 'img',
    ];

    static $type2 = [
        'text' => '1',
        'img' => '2',
    ];
}
